Skip to content

add samples for using a regional endpoint with SCC v2 API #12739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 409 commits into
base: main
Choose a base branch
from

Conversation

onagbonoga
Copy link

@onagbonoga onagbonoga commented Oct 30, 2024

Description

The SCC API can be accessed via Regional Endpoints to meet customer data residency requirements. This sample shows how to override the endpoint for an API client. See https://cloud.google.com/security-command-center/docs/data-residency-support.md#regional-urls for more information on data residency

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@onagbonoga onagbonoga requested review from a team as code owners October 30, 2024 21:46
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: securitycenter Issues related to the Security Command Center API. labels Oct 30, 2024
Copy link

snippet-bot bot commented Oct 30, 2024

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@iennae
Copy link
Contributor

iennae commented Nov 21, 2024

@onagbonoga it feels like this is pretty duplicative of https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/securitycenter/snippets_v2/snippets_findings_v2.py bar the sending options which seems like it could be an addition to the existing snippet. Any particular reason to need both?

@onagbonoga
Copy link
Author

@onagbonoga it feels like this is pretty duplicative of https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/securitycenter/snippets_v2/snippets_findings_v2.py bar the sending options which seems like it could be an addition to the existing snippet. Any particular reason to need both?

Thank you. I have added the samples to snippets_findings_v2.py

eapl-gemugami and others added 17 commits January 17, 2025 17:37
…ance notices) (#13072)

* chore(compute): migrate regions step 1 - add regions to metadata/main.py

* chore(compute): remove whitespace in metadata/vm_identity.py

* chore(compute): fix code style to comply with PEP-8 and code-review-assist
…rch_sample.py (#13005)

* chore(job): rename tags at jobs/v3/api_client/location_search_sample.py

* chore(job): remove region tag at jobs/v3/api_client/location_search_sample.py
these samples were moved temporarily to the API repo and then moved back and the README didn't get updated.
these samples were moved to the API directory and then moved back. the readme is incorrect and points to an archived repo
these samples moved to a different repo and then migrated back under the top level directory of videointelligence. The other directories should probably be examined and merged over to videointelligence as well (and potentially de-duplicated)
…n.py (#13079)

* chore(gae): add requirements-test.txt and requirements-test.txt to pass nox tests

* chore(gae): add regions to ndb/overview/main.py
* chore(gae): delete regions from migration/ndb/overview/main.py

* chore(gae): add support for Python 3 to requirements-test.txt

* chore(gae): fix whitespace in templates/index.html

* docs(gae): update README.md to a current Python 3 sample
…metadata/main.py (#13083)

* chore(compute): migrate regions step 3 - delete old region tags from metadata/main.py

* chore(compute): fix wrong deletion in previous commit
* chore(gae): add support for Python 3 to requirements-test.txt

* chore(gae): remove region tags from migration/taskqueue/pull-counter/main.py

* chore(gae): add requirements-test.txt and requirements-test.txt

* chore(gae): remove region tags from taskqueue/counter/worker.py

* chore(gae): add requirements-test.txt and requirements-test.txt

* chore(gae): remove region tags from taskqueue/pull-counter/main.py
* docs(generative_ai): Add Vertex AI Express Mode Sample

- https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview

---------

Co-authored-by: Sampath Kumar <sampathm@google.com>
Co-authored-by: Maciej Strzelczyk <strzelczyk@google.com>
* chore(deps): update dependency pyarrow to v19

* Update pyarrow dependency limits

* Update pandas-gbq to latest (python 3.8 supported)

* Update Python 3.13 wheel'd pandas

* update grpcio to py3.13 supported version

---------

Co-authored-by: Katie McLaughlin <katie@glasnt.com>
@onagbonoga onagbonoga requested review from a team, chalmerlowe and yuriatgoogle as code owners May 8, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: securitycenter Issues related to the Security Command Center API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.